package com.product.enmu;

import lombok.Getter;

@Getter
public enum HttpStatusEnum {
    OK(200, "请求成功"),
    PARAM_ERROR(410, "参数错误"),
    ERROR(401, "请求失败"),
    UNAUTHORIZED(400, "未登录");

    private final String message;
    private final int code;

    HttpStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
